package com.vtech.ws.commons;

import lombok.Data;

import javax.activation.DataHandler;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlMimeType;

/**
 * TODO
 * XmlAccessorType 标注JAXB 在进行JAVA 对象与XML 之间进行转换时只关注字段，而不关注属性
 * @author houzhiwei
 * @date 2018/9/5 15:26
 */
@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class FileEntity {
    private String name;
    private String extension;

    @XmlMimeType("application/octet-stream")
    private DataHandler file;
    private long size;

}
